Fix next changelog workflow#808
Merged
Merged
Conversation
|
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR fixes an issue with the next changelog workflow when special characters appear in the PR description or in the list of changed files. The changes include switching to using the GitHub API (via the gh CLI) to fetch changed files and PR messages, sanitizing the output to avoid code injection issues, and updating the logic to post or remove PR comments based on whether NEXT_CHANGELOG.md is modified or a NO_CHANGELOG flag is set.
Collaborator
|
This check should pass when running on this PR, right? Seems like it still fails. |
Collaborator
Author
|
the check uses pull_request_target so it still fails on this PR, next PRs would use the new workflow @madhav-db |
samikshya-db
approved these changes
Apr 25, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes issue with next changelog when there are special chars in PR desc or changed files
Testing
Link with no changelog: https://github.com/databricks/databricks-jdbc-dev/actions/runs/14658736565
Link with comment added to skip: https://github.com/databricks/databricks-jdbc-dev/actions/runs/14658885212
Additional Notes to the Reviewer
NO_CHANGELOG=true